/*global $:false */
	$(function(){"use strict";
		$('#home').css({'height':($(window).height())+'px'});
		$(window).resize(function(){
		$('#home').css({'height':($(window).height())+'px'});
		});
	});


	

 $(function(){
    $('#maximage').maximage({
        cycleOptions: {
            fx: 'fade',
            speed: 1000, // Has to match the speed for CSS transitions in jQuery.maximage.css (lines 30 - 33)
            timeout: 4000,
            prev: '#arrow_left',
            next: '#arrow_right',
            pause: 1,
            
        },
        onFirstImageLoaded: function(){
            jQuery('#cycle-loader').hide();
            jQuery('#maximage').fadeIn('slow');
        }
    });
});			
	
/*global $:false */
$(document).ready(function(){"use strict";
	$(".scroll").click(function(event){

		event.preventDefault();
		var full_url = this.href;
		var parts = full_url.split("#");
		var trgt = parts[1];
		var target_offset = $("#"+trgt).offset();
		var target_top = target_offset.top;

		$('html, body').animate({scrollTop:target_top}, 1400);
	});
});	


	$(document).ready(
	function() {  
		$("html").niceScroll();
		}
	);
	
$(document).ready(function(){
		$("#navigation").sticky({topSpacing:0});

				$(".menu").click(function(){
					$("#menu").find("li").animate({height:"315px"});
				});

				$(".close").click(function(){
					$("#menu").find("li").animate({height:"34px"});
				});
		
	});	
	

	

 
				

$.extend($.easing, window.easing);



$("#rotator > div:gt(0)").hide();

setInterval(function() { 
  $('#rotator > div:first')
    .fadeOut(0)
    .next()
    .fadeIn(1000)
    .end()
    .appendTo('#rotator');
},  3000);






